//
//  PTTabBarManager.h
//  封装TableBar
//
//  Created by 贾旭周 on 15/12/11.
//  Copyright © 2015年 gm-iMac-iOS-03. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "TPTooBar.h"

@class TPNavigationController;

@protocol TPTabBarManagerDelegate <NSObject>

- (void)selectIndex:(BottomIndex)index lastIndex:(BottomIndex)lastIndex;

@end


@interface TPTabBarManager : NSObject


@property (nonatomic, weak) id<TPTabBarManagerDelegate>delegate;
@property (nonatomic, strong) UIWindow *delegateWindow;

+ (id)share;

- (void)setVCArray:(NSArray *)aryVC;
- (void)setToorBarTitleAry:(NSArray *)aryTitle UnSelectImageAry:(NSArray *)aryUnSelectAry selectImageAry:(NSArray *)arySelectAry;
- (void)setToorBarBackForColor:(UIColor *)color;
- (void)setToorBarBackForImage:(UIImage *)img;

/// 跳转到指定导航
- (void)jumpToNav:(BottomIndex)bottomIndex;

/// 显示和隐藏导航
- (void)showBottomView:(BOOL)show animation:(BOOL)animation;

- (TPNavigationController *)getNavControllerByIndex:(BottomIndex)index;
- (TPNavigationController *)curNavController;

/// 获取当前的位置
- (NSInteger)getLastIndex;

@end
